<template>
<header id="header" style="height: 88px">
  <div class="navbox" style="padding-top: 25px;">
    <h2 id="mnavh"><span class="navicon"></span></h2>
    <div class="logo" style="padding-left: 63px;"><a href="#">流浪动物救助平台</a></div>
    <nav>
      <ul id="starlist">
        <li><a href="/index.html">系统首页</a></li>
        <li><a href="/view/xinwen/xinwenAll.html">新闻动态</a></li>
        <li><a href="/view/renyuan/renyuanAll.html">志愿者风采</a></li>
        <li><a href="/view/juan/juanAdd.html">爱心募捐</a></li>
        <li class="menu"><a href="#">动物类别</a>
          <ul class="sub">
            <li v-for="(leibie) in leibieList" :key="leibie.id">
                <a :href="'/view/dongwu/dongwuByLeibie.html?leibieId='+leibie.id">{{leibie.mingcheng}}</a>
            </li>
          </ul>
        </li>
		
        <li><a href="/view/gonggao/gonggaoAll.html">系统公告</a></li>
        <li><a href="/view/liuyanban/liuyanbanAll.html">系统留言板</a></li>
        
        
        
      </ul>
    </nav>
  </div>

</header>
</template>

 
<script>
    module.exports = {
        data: function() {
            return {
                msg: "",
                leibieList:[],
                
            }
        },
        methods: {
            handeler() {
                this.count = this.count + 1;
            },

            getData()
            {
                    axios({
                        method: 'POST',
                        url: '/leibieAll',
                        params:{
                          
                        }
                        }).then(data => {
                          if (data.data.state == 66)
                          {
                              this.leibieList=data.data.data;
                          } 
                            
                        }).catch(error => {
                          alert(error);
                      })
            },
            
        },

        created()
        {
           this.getData();

        },
        mounted() 
        {
            /* let script = document.createElement('script');
            script.type = 'text/javascript';
            script.src = 'js/comm.js';
            document.body.appendChild(script); */
        },

    }


</script>


<style>
   @import url();
</style>	
